package com.xuan.friend.service.contest;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuan.common.core.domain.TableDataInfo;
import com.xuan.friend.domain.contest.Contest;
import com.xuan.friend.domain.contest.dto.ContestQueryDTO;
import com.xuan.friend.domain.contest.dto.ContestRankDTO;
import com.xuan.friend.domain.contest.vo.ContestVo;

import java.util.List;

/**
* @author ASUS
* @description 针对表【tb_contest(竞赛表)】的数据库操作Service
* @createDate 2024-11-16 22:40:37
*/
public interface ContestService extends IService<Contest> {

    List<ContestVo> listContest(ContestQueryDTO contestQueryDTO);

    TableDataInfo redisListContest(ContestQueryDTO contestQueryDTO);

    TableDataInfo listRank(ContestRankDTO contestRankDTO);

    String getFirstQuestionId(Long contestId);

    String prevQuestion(Long questionId, Long contestId);

    String nextQuestion(Long questionId, Long contestId);

}
